#include "GraphEdge.h"

GraphEdge::GraphEdge()
{
	m_startId = CellPosition(-1, -1);
	m_endId = CellPosition(-1, -1);
	m_cost = -1;

	m_visited = false;
}

GraphEdge::GraphEdge(CellPosition start, CellPosition end, float cost)
{
	m_startId = start;
	m_endId = end;
	m_cost = cost;

	m_visited = false;
}

void GraphEdge::SetCost(float cost)
{
	m_cost = cost;
}

float GraphEdge::GetCost()
{
	return m_cost;
}

void GraphEdge::SetStartId(CellPosition id)
{
	m_startId = id;
}

CellPosition GraphEdge::GetStartId()
{
	return m_startId;
}

void GraphEdge::SetEndId(CellPosition id)
{
	m_endId = id;
}

CellPosition GraphEdge::GetEndId()
{
	return m_endId;
}

void GraphEdge::SetVisited(bool b)
{
	m_visited = b;
}

bool GraphEdge::GetVisited()
{
	return m_visited;
}